package com.demo.Service;

import com.demo.common.MessageUtils;
import com.demo.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.ArrayList;

public interface UserService {
    //分页查询
    MessageUtils<PageInfo<User>> SelectAll(int pn, int number,String str);

    //批量插入
    MessageUtils<Integer> Inserts(ArrayList<User> users);

    MessageUtils<Integer> updateUser(User user);

    MessageUtils<?> deleteUser(String id);

    MessageUtils<?> SelectUser(String username, String password);
}
